package com.gzx.plugin.tjzy.modular.inspection.controller;

import com.gzx.plugin.tjzy.modular.inspection.bo.GzxManualInspectionAddBo;
import com.gzx.plugin.tjzy.modular.inspection.bo.GzxManualInspectionQueryBo;
import com.gzx.plugin.tjzy.modular.inspection.service.GzxManualInspectionService;
import com.gzx.plugin.tjzy.modular.inspection.vo.GzxManualInspectionVo;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.mvc.controller.BaseController;

/**
 * @author xbl
 */
@Slf4j
@RestController
@RequestMapping("/inspection")
public class GzxManualInspectionController extends BaseController<GzxManualInspectionAddBo, GzxManualInspectionVo, GzxManualInspectionQueryBo, GzxManualInspectionService> {

    public GzxManualInspectionController(GzxManualInspectionService baseService) {
        super(baseService);
    }

    /**
     * 人工质检导出
     */
    @RequestMapping("/export")
    public void exportInspectionReport(@RequestBody GzxManualInspectionQueryBo bo, HttpServletResponse response) {
        baseService.exportInspectionReport(bo, response);
    }
}
